package org.gongzhen.HomeService;

import org.gongzhen.Category;
import org.gongzhen.Post;

import java.util.List;

public interface PostService {

    List<Post> getAllPost();

    void deleteById(Integer id);

    void addPost(Post post);

    Post getById(Integer id);

    void updateById(Integer id, Post post);

    List<Post> getByCategoryId(Integer categoryId);

    void like(Integer postId);

    void collectPost(Integer postId);
}
